package br.rnp.poccafe;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * PocCafeServlet.java
 * ================
 * (created by alexandre, 21/10/2014)
 * 
 * @author Alexandre dos Santos Matos
 * 
 * Servlet para receber os parametros de autenticacao do Cafe
 */

@SuppressWarnings("serial")
@WebServlet("/PocCafe")
public class PocCafeServlet extends HttpServlet {

	private final Delegate delegate = new Delegate();
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		delegate.process(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		delegate.process(request, response);
	}
}
